package publish;

import service.IUserService;
import service.UserServiceImpl;

import javax.xml.ws.Endpoint;

/**
 * @author liujw
 * @create 2020/9/10 00:13
 */
public class Publish {
    public static void main(String[] args) {
        //将CXY 将 UserServer注册到网络上
        //1.服务实现对象
        IUserService userService = new UserServiceImpl();
        //2发布服务地址
        String address = "http://localhost:8888/userService";
        //3发布服务
        Endpoint.publish(address, userService);
        System.out.println("服务已经启动...");

    }
}
